package com.soboot.system.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.annotations.Update;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Author:
 * @createTime: 2023年01月05日 14:03:11
 * @version:
 * @Description:
 * @Copyright:
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="DictSaveReqModel",description = "")
public class DictSaveReqModel {

    @ApiModelProperty(value = "主键ID")
    @NotNull(message = "主键ID不能为空", groups = {Update.class})
    private Integer id;

    @ApiModelProperty(value = "名称")
    private String dictName;

    @ApiModelProperty(value = "编码")
    private String dictCode;

    @Builder.Default
    @ApiModelProperty(value = "启用状态: 0否 1是")
    private String status = "1";

    @ApiModelProperty(value = "备注")
    private String remark;
}
